package com.quanyan.pay.entity;

import com.quanyan.common.Plugin.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PayRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public PayRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectIsNull() {
            addCriterion("order_subject is null");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectIsNotNull() {
            addCriterion("order_subject is not null");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectEqualTo(String value) {
            addCriterion("order_subject =", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectNotEqualTo(String value) {
            addCriterion("order_subject <>", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectGreaterThan(String value) {
            addCriterion("order_subject >", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectGreaterThanOrEqualTo(String value) {
            addCriterion("order_subject >=", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectLessThan(String value) {
            addCriterion("order_subject <", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectLessThanOrEqualTo(String value) {
            addCriterion("order_subject <=", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectLike(String value) {
            addCriterion("order_subject like", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectNotLike(String value) {
            addCriterion("order_subject not like", value, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectIn(List<String> values) {
            addCriterion("order_subject in", values, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectNotIn(List<String> values) {
            addCriterion("order_subject not in", values, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectBetween(String value1, String value2) {
            addCriterion("order_subject between", value1, value2, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderSubjectNotBetween(String value1, String value2) {
            addCriterion("order_subject not between", value1, value2, "orderSubject");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeIsNull() {
            addCriterion("order_describe is null");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeIsNotNull() {
            addCriterion("order_describe is not null");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeEqualTo(String value) {
            addCriterion("order_describe =", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeNotEqualTo(String value) {
            addCriterion("order_describe <>", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeGreaterThan(String value) {
            addCriterion("order_describe >", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeGreaterThanOrEqualTo(String value) {
            addCriterion("order_describe >=", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeLessThan(String value) {
            addCriterion("order_describe <", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeLessThanOrEqualTo(String value) {
            addCriterion("order_describe <=", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeLike(String value) {
            addCriterion("order_describe like", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeNotLike(String value) {
            addCriterion("order_describe not like", value, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeIn(List<String> values) {
            addCriterion("order_describe in", values, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeNotIn(List<String> values) {
            addCriterion("order_describe not in", values, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeBetween(String value1, String value2) {
            addCriterion("order_describe between", value1, value2, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderDescribeNotBetween(String value1, String value2) {
            addCriterion("order_describe not between", value1, value2, "orderDescribe");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNull() {
            addCriterion("order_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNotNull() {
            addCriterion("order_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountEqualTo(BigDecimal value) {
            addCriterion("order_amount =", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_amount <>", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThan(BigDecimal value) {
            addCriterion("order_amount >", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount >=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThan(BigDecimal value) {
            addCriterion("order_amount <", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount <=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIn(List<BigDecimal> values) {
            addCriterion("order_amount in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_amount not in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount not between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNull() {
            addCriterion("pay_id is null");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNotNull() {
            addCriterion("pay_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayIdEqualTo(Integer value) {
            addCriterion("pay_id =", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotEqualTo(Integer value) {
            addCriterion("pay_id <>", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThan(Integer value) {
            addCriterion("pay_id >", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_id >=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThan(Integer value) {
            addCriterion("pay_id <", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThanOrEqualTo(Integer value) {
            addCriterion("pay_id <=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdIn(List<Integer> values) {
            addCriterion("pay_id in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotIn(List<Integer> values) {
            addCriterion("pay_id not in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdBetween(Integer value1, Integer value2) {
            addCriterion("pay_id between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_id not between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNull() {
            addCriterion("seller_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNotNull() {
            addCriterion("seller_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerIdEqualTo(String value) {
            addCriterion("seller_id =", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotEqualTo(String value) {
            addCriterion("seller_id <>", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThan(String value) {
            addCriterion("seller_id >", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThanOrEqualTo(String value) {
            addCriterion("seller_id >=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThan(String value) {
            addCriterion("seller_id <", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThanOrEqualTo(String value) {
            addCriterion("seller_id <=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLike(String value) {
            addCriterion("seller_id like", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotLike(String value) {
            addCriterion("seller_id not like", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIn(List<String> values) {
            addCriterion("seller_id in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotIn(List<String> values) {
            addCriterion("seller_id not in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdBetween(String value1, String value2) {
            addCriterion("seller_id between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotBetween(String value1, String value2) {
            addCriterion("seller_id not between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerAccountIsNull() {
            addCriterion("seller_account is null");
            return (Criteria) this;
        }

        public Criteria andSellerAccountIsNotNull() {
            addCriterion("seller_account is not null");
            return (Criteria) this;
        }

        public Criteria andSellerAccountEqualTo(String value) {
            addCriterion("seller_account =", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountNotEqualTo(String value) {
            addCriterion("seller_account <>", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountGreaterThan(String value) {
            addCriterion("seller_account >", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountGreaterThanOrEqualTo(String value) {
            addCriterion("seller_account >=", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountLessThan(String value) {
            addCriterion("seller_account <", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountLessThanOrEqualTo(String value) {
            addCriterion("seller_account <=", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountLike(String value) {
            addCriterion("seller_account like", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountNotLike(String value) {
            addCriterion("seller_account not like", value, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountIn(List<String> values) {
            addCriterion("seller_account in", values, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountNotIn(List<String> values) {
            addCriterion("seller_account not in", values, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountBetween(String value1, String value2) {
            addCriterion("seller_account between", value1, value2, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andSellerAccountNotBetween(String value1, String value2) {
            addCriterion("seller_account not between", value1, value2, "sellerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerIdIsNull() {
            addCriterion("buyer_id is null");
            return (Criteria) this;
        }

        public Criteria andBuyerIdIsNotNull() {
            addCriterion("buyer_id is not null");
            return (Criteria) this;
        }

        public Criteria andBuyerIdEqualTo(String value) {
            addCriterion("buyer_id =", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdNotEqualTo(String value) {
            addCriterion("buyer_id <>", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdGreaterThan(String value) {
            addCriterion("buyer_id >", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdGreaterThanOrEqualTo(String value) {
            addCriterion("buyer_id >=", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdLessThan(String value) {
            addCriterion("buyer_id <", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdLessThanOrEqualTo(String value) {
            addCriterion("buyer_id <=", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdLike(String value) {
            addCriterion("buyer_id like", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdNotLike(String value) {
            addCriterion("buyer_id not like", value, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdIn(List<String> values) {
            addCriterion("buyer_id in", values, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdNotIn(List<String> values) {
            addCriterion("buyer_id not in", values, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdBetween(String value1, String value2) {
            addCriterion("buyer_id between", value1, value2, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerIdNotBetween(String value1, String value2) {
            addCriterion("buyer_id not between", value1, value2, "buyerId");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountIsNull() {
            addCriterion("buyer_login_account is null");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountIsNotNull() {
            addCriterion("buyer_login_account is not null");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountEqualTo(String value) {
            addCriterion("buyer_login_account =", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountNotEqualTo(String value) {
            addCriterion("buyer_login_account <>", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountGreaterThan(String value) {
            addCriterion("buyer_login_account >", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountGreaterThanOrEqualTo(String value) {
            addCriterion("buyer_login_account >=", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountLessThan(String value) {
            addCriterion("buyer_login_account <", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountLessThanOrEqualTo(String value) {
            addCriterion("buyer_login_account <=", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountLike(String value) {
            addCriterion("buyer_login_account like", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountNotLike(String value) {
            addCriterion("buyer_login_account not like", value, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountIn(List<String> values) {
            addCriterion("buyer_login_account in", values, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountNotIn(List<String> values) {
            addCriterion("buyer_login_account not in", values, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountBetween(String value1, String value2) {
            addCriterion("buyer_login_account between", value1, value2, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerLoginAccountNotBetween(String value1, String value2) {
            addCriterion("buyer_login_account not between", value1, value2, "buyerLoginAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountIsNull() {
            addCriterion("buyer_account is null");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountIsNotNull() {
            addCriterion("buyer_account is not null");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountEqualTo(String value) {
            addCriterion("buyer_account =", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotEqualTo(String value) {
            addCriterion("buyer_account <>", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountGreaterThan(String value) {
            addCriterion("buyer_account >", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountGreaterThanOrEqualTo(String value) {
            addCriterion("buyer_account >=", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountLessThan(String value) {
            addCriterion("buyer_account <", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountLessThanOrEqualTo(String value) {
            addCriterion("buyer_account <=", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountLike(String value) {
            addCriterion("buyer_account like", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotLike(String value) {
            addCriterion("buyer_account not like", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountIn(List<String> values) {
            addCriterion("buyer_account in", values, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotIn(List<String> values) {
            addCriterion("buyer_account not in", values, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountBetween(String value1, String value2) {
            addCriterion("buyer_account between", value1, value2, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotBetween(String value1, String value2) {
            addCriterion("buyer_account not between", value1, value2, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerBankIsNull() {
            addCriterion("buyer_bank is null");
            return (Criteria) this;
        }

        public Criteria andBuyerBankIsNotNull() {
            addCriterion("buyer_bank is not null");
            return (Criteria) this;
        }

        public Criteria andBuyerBankEqualTo(String value) {
            addCriterion("buyer_bank =", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankNotEqualTo(String value) {
            addCriterion("buyer_bank <>", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankGreaterThan(String value) {
            addCriterion("buyer_bank >", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankGreaterThanOrEqualTo(String value) {
            addCriterion("buyer_bank >=", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankLessThan(String value) {
            addCriterion("buyer_bank <", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankLessThanOrEqualTo(String value) {
            addCriterion("buyer_bank <=", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankLike(String value) {
            addCriterion("buyer_bank like", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankNotLike(String value) {
            addCriterion("buyer_bank not like", value, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankIn(List<String> values) {
            addCriterion("buyer_bank in", values, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankNotIn(List<String> values) {
            addCriterion("buyer_bank not in", values, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankBetween(String value1, String value2) {
            addCriterion("buyer_bank between", value1, value2, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andBuyerBankNotBetween(String value1, String value2) {
            addCriterion("buyer_bank not between", value1, value2, "buyerBank");
            return (Criteria) this;
        }

        public Criteria andMchIdIsNull() {
            addCriterion("mch_id is null");
            return (Criteria) this;
        }

        public Criteria andMchIdIsNotNull() {
            addCriterion("mch_id is not null");
            return (Criteria) this;
        }

        public Criteria andMchIdEqualTo(String value) {
            addCriterion("mch_id =", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotEqualTo(String value) {
            addCriterion("mch_id <>", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdGreaterThan(String value) {
            addCriterion("mch_id >", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdGreaterThanOrEqualTo(String value) {
            addCriterion("mch_id >=", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdLessThan(String value) {
            addCriterion("mch_id <", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdLessThanOrEqualTo(String value) {
            addCriterion("mch_id <=", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdLike(String value) {
            addCriterion("mch_id like", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotLike(String value) {
            addCriterion("mch_id not like", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdIn(List<String> values) {
            addCriterion("mch_id in", values, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotIn(List<String> values) {
            addCriterion("mch_id not in", values, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdBetween(String value1, String value2) {
            addCriterion("mch_id between", value1, value2, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotBetween(String value1, String value2) {
            addCriterion("mch_id not between", value1, value2, "mchId");
            return (Criteria) this;
        }

        public Criteria andPayAmountIsNull() {
            addCriterion("pay_amount is null");
            return (Criteria) this;
        }

        public Criteria andPayAmountIsNotNull() {
            addCriterion("pay_amount is not null");
            return (Criteria) this;
        }

        public Criteria andPayAmountEqualTo(BigDecimal value) {
            addCriterion("pay_amount =", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountNotEqualTo(BigDecimal value) {
            addCriterion("pay_amount <>", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountGreaterThan(BigDecimal value) {
            addCriterion("pay_amount >", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_amount >=", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountLessThan(BigDecimal value) {
            addCriterion("pay_amount <", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_amount <=", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountIn(List<BigDecimal> values) {
            addCriterion("pay_amount in", values, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountNotIn(List<BigDecimal> values) {
            addCriterion("pay_amount not in", values, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_amount between", value1, value2, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_amount not between", value1, value2, "payAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountIsNull() {
            addCriterion("refund_ing_amount is null");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountIsNotNull() {
            addCriterion("refund_ing_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountEqualTo(BigDecimal value) {
            addCriterion("refund_ing_amount =", value, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountNotEqualTo(BigDecimal value) {
            addCriterion("refund_ing_amount <>", value, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountGreaterThan(BigDecimal value) {
            addCriterion("refund_ing_amount >", value, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("refund_ing_amount >=", value, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountLessThan(BigDecimal value) {
            addCriterion("refund_ing_amount <", value, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("refund_ing_amount <=", value, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountIn(List<BigDecimal> values) {
            addCriterion("refund_ing_amount in", values, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountNotIn(List<BigDecimal> values) {
            addCriterion("refund_ing_amount not in", values, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("refund_ing_amount between", value1, value2, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andRefundIngAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("refund_ing_amount not between", value1, value2, "refundIngAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountIsNull() {
            addCriterion("total_refund_amount is null");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountIsNotNull() {
            addCriterion("total_refund_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountEqualTo(BigDecimal value) {
            addCriterion("total_refund_amount =", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountNotEqualTo(BigDecimal value) {
            addCriterion("total_refund_amount <>", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountGreaterThan(BigDecimal value) {
            addCriterion("total_refund_amount >", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_refund_amount >=", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountLessThan(BigDecimal value) {
            addCriterion("total_refund_amount <", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_refund_amount <=", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountIn(List<BigDecimal> values) {
            addCriterion("total_refund_amount in", values, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountNotIn(List<BigDecimal> values) {
            addCriterion("total_refund_amount not in", values, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_refund_amount between", value1, value2, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_refund_amount not between", value1, value2, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutIsNull() {
            addCriterion("pay_time_out is null");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutIsNotNull() {
            addCriterion("pay_time_out is not null");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutEqualTo(Integer value) {
            addCriterion("pay_time_out =", value, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutNotEqualTo(Integer value) {
            addCriterion("pay_time_out <>", value, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutGreaterThan(Integer value) {
            addCriterion("pay_time_out >", value, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_time_out >=", value, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutLessThan(Integer value) {
            addCriterion("pay_time_out <", value, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutLessThanOrEqualTo(Integer value) {
            addCriterion("pay_time_out <=", value, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutIn(List<Integer> values) {
            addCriterion("pay_time_out in", values, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutNotIn(List<Integer> values) {
            addCriterion("pay_time_out not in", values, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutBetween(Integer value1, Integer value2) {
            addCriterion("pay_time_out between", value1, value2, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andPayTimeOutNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_time_out not between", value1, value2, "payTimeOut");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("order_no is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("order_no is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(String value) {
            addCriterion("order_no =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(String value) {
            addCriterion("order_no <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(String value) {
            addCriterion("order_no >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("order_no >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(String value) {
            addCriterion("order_no <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(String value) {
            addCriterion("order_no <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLike(String value) {
            addCriterion("order_no like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotLike(String value) {
            addCriterion("order_no not like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<String> values) {
            addCriterion("order_no in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<String> values) {
            addCriterion("order_no not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(String value1, String value2) {
            addCriterion("order_no between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(String value1, String value2) {
            addCriterion("order_no not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andTsnIsNull() {
            addCriterion("tsn is null");
            return (Criteria) this;
        }

        public Criteria andTsnIsNotNull() {
            addCriterion("tsn is not null");
            return (Criteria) this;
        }

        public Criteria andTsnEqualTo(String value) {
            addCriterion("tsn =", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnNotEqualTo(String value) {
            addCriterion("tsn <>", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnGreaterThan(String value) {
            addCriterion("tsn >", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnGreaterThanOrEqualTo(String value) {
            addCriterion("tsn >=", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnLessThan(String value) {
            addCriterion("tsn <", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnLessThanOrEqualTo(String value) {
            addCriterion("tsn <=", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnLike(String value) {
            addCriterion("tsn like", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnNotLike(String value) {
            addCriterion("tsn not like", value, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnIn(List<String> values) {
            addCriterion("tsn in", values, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnNotIn(List<String> values) {
            addCriterion("tsn not in", values, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnBetween(String value1, String value2) {
            addCriterion("tsn between", value1, value2, "tsn");
            return (Criteria) this;
        }

        public Criteria andTsnNotBetween(String value1, String value2) {
            addCriterion("tsn not between", value1, value2, "tsn");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoIsNull() {
            addCriterion("refund_order_no is null");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoIsNotNull() {
            addCriterion("refund_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoEqualTo(String value) {
            addCriterion("refund_order_no =", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotEqualTo(String value) {
            addCriterion("refund_order_no <>", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoGreaterThan(String value) {
            addCriterion("refund_order_no >", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("refund_order_no >=", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoLessThan(String value) {
            addCriterion("refund_order_no <", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoLessThanOrEqualTo(String value) {
            addCriterion("refund_order_no <=", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoLike(String value) {
            addCriterion("refund_order_no like", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotLike(String value) {
            addCriterion("refund_order_no not like", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoIn(List<String> values) {
            addCriterion("refund_order_no in", values, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotIn(List<String> values) {
            addCriterion("refund_order_no not in", values, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoBetween(String value1, String value2) {
            addCriterion("refund_order_no between", value1, value2, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotBetween(String value1, String value2) {
            addCriterion("refund_order_no not between", value1, value2, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andReturnUrlIsNull() {
            addCriterion("return_url is null");
            return (Criteria) this;
        }

        public Criteria andReturnUrlIsNotNull() {
            addCriterion("return_url is not null");
            return (Criteria) this;
        }

        public Criteria andReturnUrlEqualTo(String value) {
            addCriterion("return_url =", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotEqualTo(String value) {
            addCriterion("return_url <>", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlGreaterThan(String value) {
            addCriterion("return_url >", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlGreaterThanOrEqualTo(String value) {
            addCriterion("return_url >=", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlLessThan(String value) {
            addCriterion("return_url <", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlLessThanOrEqualTo(String value) {
            addCriterion("return_url <=", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlLike(String value) {
            addCriterion("return_url like", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotLike(String value) {
            addCriterion("return_url not like", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlIn(List<String> values) {
            addCriterion("return_url in", values, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotIn(List<String> values) {
            addCriterion("return_url not in", values, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlBetween(String value1, String value2) {
            addCriterion("return_url between", value1, value2, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotBetween(String value1, String value2) {
            addCriterion("return_url not between", value1, value2, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andExtraParamIsNull() {
            addCriterion("extra_param is null");
            return (Criteria) this;
        }

        public Criteria andExtraParamIsNotNull() {
            addCriterion("extra_param is not null");
            return (Criteria) this;
        }

        public Criteria andExtraParamEqualTo(String value) {
            addCriterion("extra_param =", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamNotEqualTo(String value) {
            addCriterion("extra_param <>", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamGreaterThan(String value) {
            addCriterion("extra_param >", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamGreaterThanOrEqualTo(String value) {
            addCriterion("extra_param >=", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamLessThan(String value) {
            addCriterion("extra_param <", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamLessThanOrEqualTo(String value) {
            addCriterion("extra_param <=", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamLike(String value) {
            addCriterion("extra_param like", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamNotLike(String value) {
            addCriterion("extra_param not like", value, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamIn(List<String> values) {
            addCriterion("extra_param in", values, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamNotIn(List<String> values) {
            addCriterion("extra_param not in", values, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamBetween(String value1, String value2) {
            addCriterion("extra_param between", value1, value2, "extraParam");
            return (Criteria) this;
        }

        public Criteria andExtraParamNotBetween(String value1, String value2) {
            addCriterion("extra_param not between", value1, value2, "extraParam");
            return (Criteria) this;
        }

        public Criteria andPayNoteIsNull() {
            addCriterion("pay_note is null");
            return (Criteria) this;
        }

        public Criteria andPayNoteIsNotNull() {
            addCriterion("pay_note is not null");
            return (Criteria) this;
        }

        public Criteria andPayNoteEqualTo(String value) {
            addCriterion("pay_note =", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteNotEqualTo(String value) {
            addCriterion("pay_note <>", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteGreaterThan(String value) {
            addCriterion("pay_note >", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteGreaterThanOrEqualTo(String value) {
            addCriterion("pay_note >=", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteLessThan(String value) {
            addCriterion("pay_note <", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteLessThanOrEqualTo(String value) {
            addCriterion("pay_note <=", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteLike(String value) {
            addCriterion("pay_note like", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteNotLike(String value) {
            addCriterion("pay_note not like", value, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteIn(List<String> values) {
            addCriterion("pay_note in", values, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteNotIn(List<String> values) {
            addCriterion("pay_note not in", values, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteBetween(String value1, String value2) {
            addCriterion("pay_note between", value1, value2, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayNoteNotBetween(String value1, String value2) {
            addCriterion("pay_note not between", value1, value2, "payNote");
            return (Criteria) this;
        }

        public Criteria andPayStateIsNull() {
            addCriterion("pay_state is null");
            return (Criteria) this;
        }

        public Criteria andPayStateIsNotNull() {
            addCriterion("pay_state is not null");
            return (Criteria) this;
        }

        public Criteria andPayStateEqualTo(Byte value) {
            addCriterion("pay_state =", value, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateNotEqualTo(Byte value) {
            addCriterion("pay_state <>", value, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateGreaterThan(Byte value) {
            addCriterion("pay_state >", value, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("pay_state >=", value, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateLessThan(Byte value) {
            addCriterion("pay_state <", value, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateLessThanOrEqualTo(Byte value) {
            addCriterion("pay_state <=", value, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateIn(List<Byte> values) {
            addCriterion("pay_state in", values, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateNotIn(List<Byte> values) {
            addCriterion("pay_state not in", values, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateBetween(Byte value1, Byte value2) {
            addCriterion("pay_state between", value1, value2, "payState");
            return (Criteria) this;
        }

        public Criteria andPayStateNotBetween(Byte value1, Byte value2) {
            addCriterion("pay_state not between", value1, value2, "payState");
            return (Criteria) this;
        }

        public Criteria andRefundStateIsNull() {
            addCriterion("refund_state is null");
            return (Criteria) this;
        }

        public Criteria andRefundStateIsNotNull() {
            addCriterion("refund_state is not null");
            return (Criteria) this;
        }

        public Criteria andRefundStateEqualTo(Byte value) {
            addCriterion("refund_state =", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateNotEqualTo(Byte value) {
            addCriterion("refund_state <>", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateGreaterThan(Byte value) {
            addCriterion("refund_state >", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("refund_state >=", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateLessThan(Byte value) {
            addCriterion("refund_state <", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateLessThanOrEqualTo(Byte value) {
            addCriterion("refund_state <=", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateIn(List<Byte> values) {
            addCriterion("refund_state in", values, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateNotIn(List<Byte> values) {
            addCriterion("refund_state not in", values, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateBetween(Byte value1, Byte value2) {
            addCriterion("refund_state between", value1, value2, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateNotBetween(Byte value1, Byte value2) {
            addCriterion("refund_state not between", value1, value2, "refundState");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Byte value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Byte value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Byte value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Byte value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Byte value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Byte> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Byte> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Byte value1, Byte value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Byte value1, Byte value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNull() {
            addCriterion("pay_time is null");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNotNull() {
            addCriterion("pay_time is not null");
            return (Criteria) this;
        }

        public Criteria andPayTimeEqualTo(Date value) {
            addCriterion("pay_time =", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotEqualTo(Date value) {
            addCriterion("pay_time <>", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThan(Date value) {
            addCriterion("pay_time >", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_time >=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThan(Date value) {
            addCriterion("pay_time <", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThanOrEqualTo(Date value) {
            addCriterion("pay_time <=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeIn(List<Date> values) {
            addCriterion("pay_time in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotIn(List<Date> values) {
            addCriterion("pay_time not in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeBetween(Date value1, Date value2) {
            addCriterion("pay_time between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotBetween(Date value1, Date value2) {
            addCriterion("pay_time not between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeIsNull() {
            addCriterion("refund_time is null");
            return (Criteria) this;
        }

        public Criteria andRefundTimeIsNotNull() {
            addCriterion("refund_time is not null");
            return (Criteria) this;
        }

        public Criteria andRefundTimeEqualTo(Date value) {
            addCriterion("refund_time =", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeNotEqualTo(Date value) {
            addCriterion("refund_time <>", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeGreaterThan(Date value) {
            addCriterion("refund_time >", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("refund_time >=", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeLessThan(Date value) {
            addCriterion("refund_time <", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeLessThanOrEqualTo(Date value) {
            addCriterion("refund_time <=", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeIn(List<Date> values) {
            addCriterion("refund_time in", values, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeNotIn(List<Date> values) {
            addCriterion("refund_time not in", values, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeBetween(Date value1, Date value2) {
            addCriterion("refund_time between", value1, value2, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeNotBetween(Date value1, Date value2) {
            addCriterion("refund_time not between", value1, value2, "refundTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}